<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tag/c.tld"%>
<div id="projectEditPanel">
<form action="${webRoot}/project/save" method="post">
	<div class="form-group">
    	<label>项目顶层包</label>
    	<input type="text" class="form-control" name="projectPackage" value="${project.projectPackage}"/>
  	</div>
  	<div class="form-group">
    	<label>项目代码</label>
    	<input type="text" class="form-control" name="projectCode" value="${project.projectName}"/>
  	</div>
  	<div class="form-group">
    	<label>项目名称</label>
    	<input type="text" class="form-control" name="projectName" value="${project.projectCode}"/>
  	</div>
  	<div class="form-group">
    	<label>项目类型</label>
    	<select class="form-control" name="projectType">
    		<option value="war">Web项目</option>
    		<option value="jar">类库</option>
    	</select>
  	</div>
  	<div class="form-group clearfix">
	    <button type="button" class="btn btn-success pull-right">完成</button>
  	</div>
</form>
<script type="text/javascript">
$(function(){
	$('#projectEditPanel .btn-success').click(function(){
		$('#projectEditPanel form').jfForm('submit',function(result){
			jf.modalCallback('#projectEditPanel',result);
		});
	})
})
</script>
</div>